package com.wxs.mapper;

import com.wxs.po.TSignIn;
import com.wxs.po.TSignInStudent;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface TSignInMapper {
    TSignIn findAllCourseById(@Param(value = "courseId") Integer courseId);
    int getCourseNum(@Param(value = "courseId") Integer courseId);
    int insertSignIn(@Param(value = "courseId") Integer courseId, @Param(value = "total") Integer total, @Param(value = "date") Timestamp date);
    List<TSignIn> findSignInListById(@Param(value = "courseId") Integer courseId);
    List<TSignInStudent> findStudentById(@Param(value = "signInId") Integer signInId);
    int updateSignIn(@Param(value = "id") Integer id);
    int insertSignInStudent(@Param(value = "signInId") Integer signInId, @Param(value = "studentId") Integer studentId, @Param(value = "time") Timestamp time);
    TSignInStudent findSign(@Param(value = "signInId") Integer signInId, @Param("studentId") Integer studentId);
}
